package sk.xorty.endpoints.common;

import org.springframework.integration.Message;
import org.springframework.stereotype.Component;
import sk.xorty.domain.Price;

@Component
public class PriceEnricher {

    public Price enrichHeader(Message<Price> msg) {
        Price price = msg.getPayload();
        price.setInstrument("APPL");
        price.setPrice(1337);

        return price;
    }
}
